package org.zqy.domain;

import java.io.Serializable;
import java.math.BigInteger;

/**
 * 用户实体类
 * 
 * @author qyzhang4
 * 
 */
public class User implements Serializable {
	private static final long serialVersionUID = -3229929389302948279L;

	/** id ,自动增长 */
	private BigInteger uid;
	/** 用户名 */
	private String uname;
	/** 用户帐号 */
	private String uaccount;
	/** 用户密码 */
	private String upassword;
	/** 用户邮箱 */
	private String uemail;
	/** 用户级别,默认为5，表示一般级别 */
	private int ulevel;
	/** 所属部门 */
	private int udepartment;
	/** 性别 */
	private String usex;

	public User() {
	}

	public User(String uname, String uaccount, int udepartment,
			String upassword, String uemail, String usex) {
		this.uname = uname;
		this.uaccount = uaccount;
		this.udepartment = udepartment;
		this.upassword = upassword;
		this.uemail = uemail;
		this.setUsex(usex);
	}

	// get、set方法

	public BigInteger getUid() {
		return uid;
	}

	public void setUid(BigInteger uid) {
		this.uid = uid;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getUaccount() {
		return uaccount;
	}

	public void setUaccount(String uaccount) {
		this.uaccount = uaccount;
	}

	public String getUpassword() {
		return upassword;
	}

	public void setUpassword(String upassword) {
		this.upassword = upassword;
	}

	public String getUemail() {
		return uemail;
	}

	public void setUemail(String uemail) {
		this.uemail = uemail;
	}

	public int getUlevel() {
		return ulevel;
	}

	public void setUlevel(int ulevel) {
		this.ulevel = ulevel;
	}

	public int getUdepartment() {
		return udepartment;
	}

	public void setUdepartment(int udepartment) {
		this.udepartment = udepartment;
	}

	public String getUsex() {
		return usex;
	}

	public void setUsex(String usex) {
		this.usex = usex;
	}

	@Override
	public String toString() {
		return "帐号:" + uaccount + ";姓名:" + uname + ";级别:" + ulevel;
	}
}
